#include<iostream>
#include<string>
using namespace std;

int main()
{
	int i = 10,j = 2;
	double slope = static_cast<double>(j)/i;
	cout << slope << endl;

	double d = 10.234;
	void *p = &d;
	//cout << *p << endl;
	double *dp = static_cast<double *>(p);
	cout << *dp << endl;

	const int a = 10;
	const int *pc = &a;
	int *p1 = const_cast<int *>(pc);
	*p1 = 200;
	cout << *p1 << endl;
	cout << a << endl;

	const char *pc2 = static_cast<char *>(malloc(sizeof(char)*100));
	char *p2 = const_cast<char *>(pc2);
	strcpy(p2,"ABCDEFGHIJKLMNHOPQRESTUVWZ");
	printf("%s\n",p2);


	int b = 65;
	int *ip = &b;
	char *pc3 = reinterpret_cast<char *>(ip);
	cout << *pc3 << endl;

	return 0;
}
